import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/pbgl/zyks/list'
    },
    {
      path: '/',
      component: () => import(/* webpackChunkName: "layout" */ '@/layouts/Layout'),
      children: [
        {
          path: 'gzpbtb',
          name: 'GZPBTB',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/gzpbtb'),
          meta: { title: '过载配变明细填报' }
        }, {
          path: 'gzdytb',
          name: 'GZDYTB',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/gzdytb'),
          meta: { title: '低电压台区预测明细填报' }
        }, {
          path: 'gzzhcx',
          name: 'GZZHCX',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/gzzhcx'),
          meta: { title: '低电压台区预测明细填报' }
        }, {
          path: 'gzyctb',
          name: 'GZYCTB',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/gzyctb'),
          meta: { title: '预测情况分析填报' }
        }, {
          path: 'yxzb/list',
          name: 'YXZB',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/yxzb'),
          meta: { title: '运行指标查询' }
        }, {
          path: 'pbgl/zyks/list',
          name: 'zyks',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/pbgl/zyks'),
          meta: { title: '专业科室排版管理' }
        }, {
          path: 'pbgl/zyjs/list',
          name: 'zyjs',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/pbgl/zyjs'),
          meta: { title: '专业技术系统排版管理' }
        }, {
          path: 'pbgl/czjl/list',
          name: 'czjl',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/pbgl/czjl'),
          meta: { title: '操作记录' }
        }, {
          path: 'pbgl/jjbjl/list',
          name: 'jjbjl',
          component: () => import(/* webpackChunkName: "dashboard" */ '@/pages/pbgl/jjbjl'),
          meta: { title: '交接班记录' }
        }
      ]
    }
  ]
})
